<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        .form-section {
            width: 800px;
            margin: 0px auto;
        }

        .form-section>h2 {
            border-bottom: 1px solid #ff0000;
            padding: 5px 0px;
        }

        .form-section>p {
            padding: 10px 0px;
        }

        .red {
            color: #ff0000;
        }

        .form-section>form>div {
            padding: 5px 0px;
        }

        .form-section label {
            display: inline-block;
            width: 140px;
            vertical-align: top;
        }

        .form-right {
            width: 200px;
            display: inline-block;
        }
    </style>
</head>

<body>
    <section class="form-section">
        <h2>个人信息</h2>
        <p>修改个人信息（<span class="red">*</span>必填）</p>
        <form action="#">
            <div>
                <label for="name"><span class="red">*</span>姓名</label>
                <div class="form-right">
                    <input type="text" id="name" name="name" placeholder="请输入姓名" required>
                </div>
            </div>
            <div>
                <label for="sex"><span class="red">*</span>性别</label>
                <div class="form-right">
                    男<input type="radio" id="sex" name="sex" value="1">
                    女<input type="radio" name="sex" value="2">
                </div>
            </div>
            <div>
                <label for="sex"><span class="red">*</span>内容</label>
                <div class="form-right">
                    <textarea></textarea>
                    <p class="red">提示内容</p>
                </div>
            </div>
            <div>
                <input type="submit" value="保存">
            </div>
        </form>
    </section>
</body>

</html>